<?php

namespace app\adminapi\model\sysnotice;

use app\common\model\BaseModel;
use app\common\traits\OperatorTrait;
use think\model\concern\SoftDelete;

class SysNoticeDO extends BaseModel
{
    use SoftDelete;
    use OperatorTrait;

    protected $name = 'notice';
    protected $table = 'sys_notice';
    protected $pk = 'notice_id';
    protected $deleteTime = 'deleted';
    protected $defaultSoftDelete = 0;
    protected $autoWriteTimestamp = false;

    protected $schema = [
        'notice_id' => 'int',
        'notice_title' => 'string',
        'notice_type' => 'int',
        'notice_content' => 'string',
        'status' => 'int',
        'create_by' => 'string',
        'create_time' => 'datetime',
        'update_by' => 'string',
        'update_time' => 'datetime',
        'remark' => 'string',
        'deleted' => 'int'
    ];
}